

let appRouter = [
  {
    path: '/',
    name: 'index',
    meta: {
      title: '首页',
      showNav: true,
      keepAlive: true
    },
    component: resolve => {
      require(['@/view/index/index'], resolve);
    }
  },{
    path: '/huiwu',
    name: 'huiwu',
    meta: {
      title: "会务",
      showNav: true,
      keepAlive:true
    },
    component: resolve => {
      require(['@/view/huiwu/index.vue'], resolve);
    }
  },{
    path: '/user',
    name: 'user',
    meta: {
      title: "我的",
      showNav: true,
      keepAlive:true
    },
    component: resolve => {
      require(['@/view/user/test.vue'], resolve);
    }
  }
]

let page404={
  path: '/*',
  name: '404',
  meta: {
    title: "页面不存在",
    notNeedToken:true
  },
  component: resolve => {
    require(['@/view/error_page/404.vue'], resolve);
  }
}



export const routers=[
  ...appRouter,
  page404
]
